<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <title>Title</title>
</head>
<body>
<div th:fragment="fields">
    <h3>Account Information</h3>

<c:if test="${!empty sessionScope.myList}">
    <p>Pet Favorites <br />
        Shop for more of your favorite pets here.</p>
    <ul>
        <c:forEach var="product" items="${sessionScope.myList}">
            <li>
                <a href="viewProduct?productId=${product.productId}">${product.name}</a>
                (${product.productId})
            </li>
        </c:forEach>
    </ul>
</c:if>





</body>
</html>